package com.dmlll.service.impl;

import com.dmlll.dao.TownshipMapper;
import com.dmlll.pojo.Township;
import com.dmlll.service.TownshipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TownshipServiceImpl implements TownshipService {
    @Autowired
    private TownshipMapper townshipMapper;

    @Override
    public List<Township> selectTownship(String code) {
        return townshipMapper.selectTownship(code);
    }

    @Override
    public String findTownByName(String name,String countyCode) {
        return townshipMapper.selectCodeByName(name,countyCode);
    }
}
